package cn.knet.sp.ncrm.modules.customer.potentialcustomer.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.knet.sp.ncrm.common.service.CrudService;
import cn.knet.sp.ncrm.modules.customer.potentialcustomer.dao.PotentialCustomerStatusDao;
import cn.knet.sp.ncrm.modules.customer.potentialcustomer.entity.PotentialCustomerStatus;

@Service
@Transactional(readOnly = true)
public class PotentialCustomerStatusService extends CrudService<PotentialCustomerStatusDao, PotentialCustomerStatus> {

	@Resource
	private PotentialCustomerStatusDao potentialCustomerStatusDao;
	
	@Transactional(readOnly = false)
	public void deleteByFirstHandId(PotentialCustomerStatus potentialCustomerStatus ){
		potentialCustomerStatusDao.deleteByFirstHandId(potentialCustomerStatus);
	}
}
